<li class="dropdown">
    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
        项目{% if request.tracer.project %}({{ request.tracer.project.name }}){% endif %} <span class="caret"></span></a>
    <ul class="dropdown-menu">
        {% if create %}
            <li style="margin-left: 15px"><i class="fa fa-bars" aria-hidden="true"></i> 我创建的项目</li>
            {% for item in create %}
                <li role="separator" class="divider"></li>
                <li><a href="{% url 'web:manage:dashboard' item.id %}">{{ item.name }}</a></li>
            {% endfor %}
        {% endif %}
        {% if join %}
            <li role="separator" class="divider"></li>
            <li style="margin-left: 15px"><i class="fa fa-joomla" aria-hidden="true"></i> 我加入的项目</li>
            {% for item in join %}
                <li role="separator" class="divider"></li>
                <li><a href="{% url 'web:manage:dashboard' item.project.id %}">{{ item.project.name }}</a></li>
            {% endfor %}
        {% endif %}
        <li role="separator" class="divider"></li>
        <li><a href="{% url 'web:project_list' %}">所有项目</a></li>
    </ul>
</li>